package com.yss.kettle.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yss.common.core.annotation.EasyExcel;
import com.yss.common.core.utils.easyexecl.IntegerConverter;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.yss.common.core.web.domain.BaseEntity;

/**
 * 作业任务明细信息对象 kettle_job_task_details
 *
 * @author yss
 * @date 2023-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("kettle_job_task_details")
public class JobTaskDetails extends BaseEntity {

    /**
     * 主键
     */
    @ExcelIgnore
    @TableId("ID")
    private String id;

    /**
     * 任务编号
     */
    @ExcelProperty(value = "任务编号")
    @TableField("TASK_ID")
    private String taskId;

    /**
     * 执行类型
     */
    @ExcelProperty(value = "执行类型")
    @TableField("FTYPE")
    private Integer ftype;

    /**
     * 输入数据库
     */
    @ExcelProperty(value = "输入数据库")
    @TableField("INPUT_DATA_ID")
    private String inputDataId;

    /**
     * 输出数据库
     */
    @ExcelProperty(value = "输出数据库")
    @TableField("OUTPUT_DATA_ID")
    private String outputDataId;

    /**
     * 执行SQL
     */
    @ExcelProperty(value = "执行SQL")
    @TableField("INPUT_SQL")
    private String inputSql;

    /**
     * 输出表名
     */
    @ExcelProperty(value = "输出表名")
    @TableField("OUTPUT_TABLE")
    private String outputTable;

    /**
     * 顺序
     */
    @ExcelProperty(value = "顺序")
    @TableField("ORDER_NUM")
    private Integer orderNum;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = IntegerConverter.class)
    @EasyExcel(readConverterExp = "1=正常,2=停用")
    @TableField("STATUS")
    private Integer status;

}
